package com.timesheet.gui.efforttracker.utils;

import java.util.Date;
import java.util.List;

import com.timesheet.server.common.models.EffortTrackerDTO;
import com.timesheet.server.common.models.view.EffortTrackerViewModel;
import com.timesheet.serverice.EffortTrackerService;

public class EffortTrackerQueryHelper {

	EffortTrackerService effortTrackerService = new EffortTrackerService();

	public List<EffortTrackerViewModel> loadDailyEfforts(String projectName,
			String userName, Date weekDate) {
		System.out.println("Getweekdate: " + weekDate);
		List<EffortTrackerDTO> effortsWSRList = effortTrackerService
				.getDailyEffortsForAWeekend(userName, projectName, weekDate);
		return EffortTrackerUtil.convertDtoListToViewModelList(effortsWSRList);
	}

}
